$(function (message) {
    $.ajax({
        url:"ajax",
        type:"post",
        data:{"method":"goods"},
        dataType:"json",
        success:function (data) {
            var msg="";
            $.each(data, function (index,k) {
                //alert("index:"+index+"k:"+k);
                msg+="<div class='list clearfix transition'>";
                msg+="<div class='tu clearfix'>";
                msg+="<img src='img/1.jpg' tppabs='http://demo.mxyhn.xyz:8020/cssthemes6/1.27ZF11/upload/1.jpg'/>+k.goodsPic";
                msg+="<span></span>";
                msg+="<div class='ycang clearfix'>";
                msg+="<samp class='opa8'></samp>";
                msg+="<div class='nr clearfix'>";
                <!--注意：当下方li中添加class名为cur的时候为选中的时候样式-->
                msg+="<ul>";
                msg+="<li class='box-s transition'>收藏</li>";
                msg+="<li class='box-s transition'>购物车</li>";
                msg+="</ul>";
                msg+="</div>";
                msg+="</div>";
                msg+="</div>";
                msg+="<div class='xia clearfix box-s'>";
                msg+="<p class='bt over'>"+k.goodsName+"</p>";
                msg+="<div class='price clearfix'>";
                msg+="<span class='fl'>"+k.goodsNewPrice+"</span>";
                msg+="<a href='pro_detail.html' tppabs='http://demo.mxyhn.xyz:8020/cssthemes6/1.27ZF11/pro_detail.html' class='goumai fr ra3 transition'>立即购买</a>";
                msg+="</div>";
                msg+="</div>";
                msg+="</div>";
            });
            $("#mybody").html(msg);
        }
    });

});